/**
 * Created with IntelliJ IDEA.
 * Description:构造方法
 * User: YCKOKO
 * Date: 2022-10-13
 * Time: 15:11
 */

class Student2{
    public Student2(){
        System.out.println("调用无参构造方法");
    }
}
public class demo5 {
    public static void main(String[] args) {
        System.out.println("声明对象");
        Student2 stu1 = null;
        System.out.println("实例化对象");
        stu1 = new Student2();
    }

}
